builderscope: Fix finalize <> dispose confusion
authorMatthias Clasen <mclasen@redhat.com>
Sun, 10 May 2020 17:29:40 +0000 (13:29 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 11 May 2020 12:15:55 +0000 (08:15 -0400)
Don't chain up to dispose if you implement finalize.

This fix s courtesy of GOBJECT_DEBUG=objects.

gtk/gtkbuilderscope.c

index 64011384c2bef4063dc1e3a77fa2404a16978dcc..21d00c103c81fe36dc0c809861664888da334448 100644 (file)
@@ -387,7 +387,7 @@ gtk_builder_cscope_finalize (GObject *object)
   g_clear_pointer (&priv->callbacks, g_hash_table_destroy);
   g_clear_pointer (&priv->module, g_module_close);
 
-  G_OBJECT_CLASS (gtk_builder_cscope_parent_class)->dispose (object);
+  G_OBJECT_CLASS (gtk_builder_cscope_parent_class)->finalize (object);
 }
   
 static void